package cn.itcast.tanhua.dubbo.server.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

/**
 * @ClassName RecommendUser
 * @Description 推荐用户类
 * @Author WU
 * @Date 2021/5/27 20:15
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(collection = "recommend_user")
public class RecommendUser implements Serializable {
    @Id
    private ObjectId id;
    @Indexed
    private Long userId;
    private Long toUserId;
    @Indexed
    private Double score;
    private String date;
}
